import request from '@/utils/request'

// 查询困难帮扶类型列表
export function listKnbftype(query) {
  return request({
    url: '/system/business/knbftype/list',
    method: 'get',
    params: query
  })
}

// 查询困难帮扶类型详细
export function getKnbftype(id) {
  return request({
    url: '/system/business/knbftype/' + id,
    method: 'get'
  })
}

// 新增困难帮扶类型
export function addKnbftype(data) {
  return request({
    url: '/system/business/knbftype',
    method: 'post',
    data: data
  })
}

// 修改困难帮扶类型
export function updateKnbftype(data) {
  return request({
    url: '/system/business/knbftype',
    method: 'put',
    data: data
  })
}

// 删除困难帮扶类型
export function delKnbftype(id) {
  return request({
    url: '/system/business/knbftype/' + id,
    method: 'delete'
  })
}
